<template>
  <div class="image-loop">
    <div class="main-image">
      <div class="left-section">
        1
      </div>
      <div class="middle-section">
        2
      </div>
      <div class="right-section">
        3
      </div>
    </div>

    <!-- 导航组件放在main-image下方 -->
    <NavItem class="nav-container"/>
  </div>
</template>

<script setup>
import NavItem from './NavItem.vue'
</script>

<style scoped lang="scss">
.image-loop {
  width: 100%;
  // height: 100vh;
  display: flex;
  flex-direction: column; /* 改为垂直排列 */
  position: relative;

  .main-image {
    width: 100%;
    height: 400px;
    background-color: #7c7575;
    display: flex;

    .left-section {
      flex: 3;
    }

    .middle-section {
      flex: 4;
    }

    .right-section {
      flex: 3;
    }
  }
}
</style>
